package sparkcore.day3.lesson01

/**
  * Created by Administrator on 2018/4/24.
  */
object Test {
  def main(args: Array[String]): Unit = {
//    val conf = new SparkConf().setMaster("local").setAppName("test")
//    val sc = new SparkContext(conf)
//    sc.textFile("D:\\1711班\\第八天\\资料\\sort.txt")
//      .map( line => (new SecondarSortKey(line.split(",")
//      (0).toInt,line.split(",")(1).toInt),line))
//       .sortByKey(false)
//      .foreach(tuple =>{
//        println(tuple._2)
//      })
  }
}
